package com.cai.service.impl;

import com.cai.dao.repository.IPermissionRepository;
import com.cai.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: PermissionServiceImpl
 * @Author RuoLi
 * @Package com.cai.service.impl
 * @Date 2024/1/12 11:25
 * @description:
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private IPermissionRepository permissionRepository;

    @Override
    public List<String> listPermissionsByUserName(String username) {
        return permissionRepository.listPermissionsByUserName(username);
    }
}
